package smashedapples.utils
{
	public class StockUtils
	{
		
		
		public static function calculateProfit( sell:Number = 0, 
												sellQ:Number = 0,
												buy:Number = 0,
												buyQ:Number = 0 ):Number
		{
			return ( sell * sellQ ) - ( buy * buyQ );
		}
		
		public static function calculateBuyPrice( sell:Number = 0, 
												  quantity:Number =  100,
												  profit:Number = 100 ):Number
		{
			return ( profit / quantity ) + ( sell / quantity );
		}
		
	}
}